home *** CD-ROM | disk | FTP | other *** search
- global gHowLongHold
-
- on mouseDown
- set whichSprite to the clickOn
- puppetSprite(whichSprite, 1)
- set constraintSprite to whichSprite - 1
- set the constraint of sprite whichSprite to constraintSprite
- set leftOffset to the left of sprite constraintSprite
- repeat while the stillDown
- set the locH of sprite whichSprite to the mouseH
- set gHowLongHold to ((the locH of sprite whichSprite - leftOffset) / 20) + 1
- set the text of field "How Long" to string(gHowLongHold)
- updateStage()
- end repeat
- end
-